﻿<Window x:Class="Supremacy.Editor.LocalizedTextEditor"
    xmlns="http://schemas.microsoft.com/netfx/2007/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Supremacy.Editor"
    Title="Localized Text Editor" Height="240" Width="480" WindowStartupLocation="CenterOwner" ShowInTaskbar="False" ResizeMode="NoResize">
  <DockPanel LastChildFill="True" Margin="6">
    <Button DockPanel.Dock="Bottom"
            Content="_Done"
            IsDefault="True"
            IsCancel="True"
            HorizontalAlignment="Center"
            Margin="0,6,0,0"
            Padding="6,0"
            TabIndex="1" />
    <DockPanel DockPanel.Dock="Left"
               LastChildFill="True"
               Width="160">
      <DockPanel DockPanel.Dock="Top" LastChildFill="True">
        <Button x:Name="RemoveCultureButton"
                DockPanel.Dock="Right"
                Width="20"
                Content="-"
                Margin="6,0,0,0"
                VerticalAlignment="Center"
                VerticalContentAlignment="Center"
                Click="RemoveCultureButton_Click"
                TabIndex="4" />
        <Button x:Name="AddCultureButton"
                DockPanel.Dock="Right"
                Width="20"
                Content="+"
                Margin="6,0,0,0"
                VerticalAlignment="Center"
                VerticalContentAlignment="Center"
                Click="AddCultureButton_Click"
                TabIndex="3" />
        <ComboBox x:Name="CultureList"
                  IsReadOnly="True"
                  IsEditable="False"
                  DisplayMemberPath="DisplayName"
                  TabIndex="2"/>
      </DockPanel>
      <ListView x:Name="EntryList"
                Margin="0,6,0,0"
                DisplayMemberPath="CultureDisplayName"
                ItemsSource="{Binding}"
                IsSynchronizedWithCurrentItem="True"
                TabIndex="5"
                SelectionChanged="EntryList_SelectionChanged"/>
    </DockPanel>
    <TextBox x:Name="EntryText"
             Text="{Binding Path=Value, Mode=TwoWay}"
             TextWrapping="Wrap"
             AcceptsReturn="True"
             Margin="6,0,0,0"
             TabIndex="0"
             IsEnabled="False"/>
  </DockPanel>
</Window>
